#pragma once
#include "Point2D.h"

class Line2D
{
public:
    Point2D a,b;
    Line2D();
    Line2D(Point2D &newA,Point2D &newB);
    Line2D(double xa,double ya,double xb,double yb);
    ~Line2D();
    
    Line2D& set(Point2D &newA,Point2D &newB);
    Line2D& set(double xa,double ya,double xb,double yb);
    
    double length();
    double slope();
    double intercept();
    void mb(double &m, double &b);
    
    //drawing
    void draw(double depth);
    void draw_width(double depth, double width);
    void draw_color(double depth, int hexColor);
    void draw_widthColor(double depth, double width, int hexColor);
};